﻿using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace FiddlerEx_Inspector
{
    public class NoToolTipTreeView : TreeView
    {
        //private const int TVM_SETEXTENDEDSTYLE = 0x112c;
        //private const int TVS_EX_DOUBLEBUFFER = 4;

        //private void EnableDoubleBuffer()
        //{
        //    SendMessage(base.Handle, 0x112c, (IntPtr)4, (IntPtr)4);
        //}

        //protected override void OnHandleCreated(EventArgs e)
        //{
        //    base.OnHandleCreated(e);
        //    if (Environment.OSVersion.Version.Major > 5)
        //    {
        //        this.EnableDoubleBuffer();
        //    }
        //}

        //[DllImport("user32.dll")]
        //private static extern IntPtr SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

        //protected override System.Windows.Forms.CreateParams CreateParams
        //{
        //    get
        //    {
        //        System.Windows.Forms.CreateParams createParams = base.CreateParams;
        //        createParams.Style |= 0x80;
        //        return createParams;
        //    }
        //}

        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // NoToolTipTreeView
            // 
            this.ShowNodeToolTips = true;
            this.ResumeLayout(false);

        }
    }
}
